package com.guge.sports.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StTeacher对象", description="教师实体类")
public class StTeacher extends Model<StTeacher> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "tid", type = IdType.AUTO)
    @ExcelIgnore
    private Long tid;

    @ApiModelProperty(value = "院系id")
    @ExcelIgnore
    private Long deptId;

    @ApiModelProperty(value = "工号")
    @ExcelProperty(value = "教师工号", index = 0)
    private String jobNumber;

    @ApiModelProperty(value = "姓名")
    @ExcelProperty(value = "教师姓名", index = 1)
    private String tname;

    @ApiModelProperty(value = "性别 1.男 0.女")
    @ExcelProperty(value = "教师性别", index = 2)
    private Integer sex;

    @ApiModelProperty(value = "电话")
    @ExcelProperty(value = "联系电话", index = 3)
    private String phone;

    @ApiModelProperty(value = "认证状态 0.未认证 1.已认证")
    @ExcelProperty(value = "认证状态", index = 4)
    private Integer state;

    @ApiModelProperty(value = "认证时间")
    @ExcelProperty(value = "认证时间", index = 5)
    private Date stateTime;

    @ApiModelProperty(value = "乐观锁")
    @ExcelIgnore
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @ExcelIgnore
    private Integer isDelete;

}
